home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(15537);
- script_version ("$Revision: 1.2 $");
- script_cve_id("CAN-2003-0455", "CAN-2004-0827");
-
- name["english"] = "RHSA-2004-494: ImageMagick";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- Updated ImageMagick packages that fix various security vulnerabilities are
- now available.
-
- ImageMagick(TM) is an image display and manipulation tool for the X Window
- System.
-
- A heap overflow flaw was discovered in the ImageMagick image handler.
- An attacker could create a carefully crafted BMP file in such a way that it
- would cause ImageMagick to execute arbitrary code when processing the
- image. The Common Vulnerabilities and Exposures project (cve.mitre.org)
- has assigned the name CAN-2004-0827 to this issue.
-
- A temporary file handling bug has been found in ImageMagick\'s libmagick
- library. A local user could overwrite or create files as a different user
- if a program was linked with the vulnerable library. The Common
- Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
- CAN-2003-0455 to this issue.
-
- Users of ImageMagick should upgrade to these updated packages, which
- contain a backported patch, and is not vulnerable to this issue.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2004-494.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the ImageMagick packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"ImageMagick-5.3.8-5", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"ImageMagick-c++-5.3.8-5", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"ImageMagick-c++-devel-5.3.8-5", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"ImageMagick-devel-5.3.8-5", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"ImageMagick-perl-5.3.8-5", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"ImageMagick-", release:"RHEL2.1") )
- {
- set_kb_item(name:"CAN-2003-0455", value:TRUE);
- set_kb_item(name:"CAN-2004-0827", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2004-494", value:TRUE);
-